package com.order.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("stock-service")
public interface StockService {

    @RequestMapping("/stock/reduction")
    public String reduction(@RequestParam("productId")long productId, @RequestParam("count")int count);
}
